package com.frontop.system.modules.file.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author YangJia
 * @since 2021-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysFileGroup对象", description="")
public class SysFileGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "上级id")
    private Integer parentId;

    @ApiModelProperty(value = "目录名称（分组名称）")
    private String fileGroupName;

    @ApiModelProperty(value = "目录图标")
    private String icon;

    @ApiModelProperty(value = "目录绝对路径")
    private String fileAbsolutePath;

    @ApiModelProperty(value = "说明")
    private String remark;
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "子目录列表")
    @TableField(exist = false)
    private List<SysFileGroup> children;
}
